const mysql=require('mysql2');
//创建数据库连接对象
const db=mysql.createPool({
    host:'8.138.157.52',
    user:'root',
    password:'123456',
    database:'trip_server',
    multipleStatements:true
})

//将数据库向外共享
module.exports=db